<template>
  <div class="main">
    <!-- 轮播图 -->
    <van-swipe class="my-swipe" :autoplay="2000" indicator-color="white" style="height: 250px;">
      <van-swipe-item><van-image fit="scale-down"
          src="https://img1.baidu.com/it/u=2448083855,246146448&fm=253&fmt=auto&app=138&f=JPEG?w=760&h=500" /></van-swipe-item>
      <van-swipe-item><van-image fit="scale-down"
          src="https://img1.baidu.com/it/u=2468573349,176549334&fm=253&fmt=auto&app=120&f=JPEG?w=1200&h=800" /></van-swipe-item>
      <van-swipe-item><van-image fit="scale-down"
          src="https://img2.baidu.com/it/u=3226578294,3349592328&fm=253&fmt=auto&app=138&f=JPEG?w=749&h=500" /></van-swipe-item>
      <van-swipe-item><van-image fit="scale-down"
          src="https://img0.baidu.com/it/u=1621227984,3671960276&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=331" /></van-swipe-item>
    </van-swipe>
    <!-- 商品信息 -->
    <div class="box">
      <ul class="box1">
        <li>￥249 </li>
        <li>原价: ￥328</li>
        <li>销量:2994</li>
      </ul>
      <p>恩康电子烟2019年新款神器充电式水果味烟油蒸汽烟辅助戒烟男女式</p>
    </div>
    <!-- 选择型号颜色类型 -->
    <p class="box2">选择<span>选择机身颜色</span></p>
    <van-dropdown-menu active-color="#ee0a24">
      <van-dropdown-item title="选择型号" :options="options" />
      <van-dropdown-item title="选择机身颜色" :options="options" />
    </van-dropdown-menu>
    <!-- 参数品牌功率 -->
    <p class="box3">参数<span>品牌功率...</span></p>

    <button class="btn" @click="$router.push('/home/orderdetails')">确认订单</button>
  </div>
</template>

<script setup lang="ts">



const options = [
  { text: '全部商品', value: 0 },
  { text: '新款商品', value: 1 },
  { text: '活动商品', value: 2 },
]

</script>

<style scoped>
.box {
  width: 370px;
  background-color: white;
  margin-top: 20px;

}

.box1 {
  display: flex;
  justify-content: space-between;
  padding: 0px 10px 0px 10px;
}

li:nth-child(1) {
  color: red;
}

li:nth-child(2) {
  flex: 1;
  padding-left: 15px;
  color: rgb(153, 166, 196);
}

li:nth-child(3) {
  color: rgb(153, 166, 196);
}

p {
  width: 370px;
  color: #333333;
  line-height: 2;
  margin-top: 10px;
  margin-left: 10px;
}

.box2 {
  color: #999999;
  margin-left: 10px;
  margin-bottom: 20px;
}

.box2>span {
  color: #333333;
  margin-left: 20px;
}


.box3 {
  color: #999999;
  margin-left: 10px;
  margin-top: 30px;
}

.box3>span {
  color: #333333;
  margin-left: 20px;
}
.btn{
  margin-top: 20px;
  margin-left: 260px;
  width: 100px;
  height: 40px;
  border-radius: 5px;
  background-color: #f68607;
  color: #fff;
  border:none;
}
</style>